package com.baitengsoft.patentapimonitor.api.service.impl;

import com.baitengsoft.patentapimonitor.api.entity.WebPlatformrolesRlatEntity;
import com.baitengsoft.patentapimonitor.api.service.WebPlatformRolesService;

/**
 * Created by Admin on 2017/12/21.
 */
public class WebPlatformRolesServiceImpl extends BaseServiceImpl<WebPlatformrolesRlatEntity> implements WebPlatformRolesService {
    @Override
    public WebPlatformrolesRlatEntity searchByPlatformID(Integer platformID) {

        WebPlatformrolesRlatEntity webplatformrolesrlatentity=new WebPlatformrolesRlatEntity();
        webplatformrolesrlatentity.setPlatformid(platformID);
        WebPlatformrolesRlatEntity entity=queryOne(webplatformrolesrlatentity);
        if(entity==null) return null;
        return entity;
    }
}
